<%@ page import="com.dailyblue.java.servlet.el.util.Student" %><%--
  Created by IntelliJ IDEA.
  User: dailyblue
  Date: 2023/4/2
  Time: 10:34
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" isELIgnored="false" language="java" %>
<html>
<head>
    <title>对象操作</title>
</head>
<body>
<%
    Student stu = new Student();
    stu.setGender('男');
    stu.setId(1);
    stu.setName("张三");
    session.setAttribute("STU", stu);
%>
<h3>小脚本</h3>
<%
    Student s = (Student) session.getAttribute("STU");
    out.print(s + "<br/>");
    out.print(s.getId() + "<br/>");
    out.print(s.getName() + "<br/>");
    out.print(s.getGender() + "<br/>");
%>
<hr/>
<h3>EL</h3>
${STU}<br/>
${STU.id}<br/>
${STU.name}<br/>
${STU.gender}
</body>
</html>
